{% extends "forum/forumbase.html" %}

{% comment %}
#    Copyright 2012 New Mexico EPSCoR
#
#    This file is part of Teacher's P.E.T.
#
#    Teacher's P.E.T. is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    Teacher's P.E.T. is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with Teacher's P.E.T..  If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}

{% load files %}

{% block title %} Attach file | {{TheThread.title}} | {{TheForum.title}} | {{block.super}}{% endblock title %}

{% block css %}
    {{block.super}}
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/forum.css" >
{% endblock css %}

{% block content %}
<div class="forum-entries-index">
	<div class="forum-entries-thread-title">
		<h1>Attach Files</h1>
	</div>
	
	<table class="forum-entries-table" cellpadding=0 cellspacing=0 border=0>
        {% with entry=TheEntry hide_editing='True' %}
        	{% get_file_list for entry as Files %}
            {% include "forum/forum/display_entry.html" %}
		{% endwith %}
	</table>
    <a href="{% course_url forum_edit_entry thread_id=TheThread.id entry_number=TheEntry.entry_number %}" class="forum-entries-button">Return to Editing Post</a>
        <hr>
        {% render_file_form for TheEntry %}
</div>
{% endblock content %}